home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
- From: grantp@usa.pipeline.com(Pete Grant)
- Newsgroups: comp.lang.c++
- Subject: Re: MSVC++: HOW to build a dialog without ClassWizard?
- Date: 21 Mar 1996 16:44:31 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4is11f$anq@news1.h1.usa.pipeline.com>
- References: <4irpd5$cqb@krant.cs.ruu.nl>
- NNTP-Posting-Host: 38.8.53.2
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete Grant)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 21, 1996 14:34:13 in article <MSVC++: HOW to build a dialog without
- ClassWizard?>, 'rvliet@cs.ruu.nl (Roeland van Vliet)' wrote:
-
-
- >Hello to all C++-programmers,
- >
- >Question:
- >
- >How can I build my own dialog without the use of
- >the classwizard in MSVC++?
- >
- Do you allow the use of a resource editor? If so,
- create the skeleton with it. If not, use RegisterWindow
- and CreateWindow with appropriate options. In either
- case, you will have to define your own window procedure
- for the dialog.
-
- >How can I add several controls to an existing dialog?
- >
- CreateWindow();
-
- There may be a better way. If you are attempting to have a
- modifiable, but predictable dialog, there's a standard trick
- for that. Create the dialog with your classwiz/resource editor,
- then move the controls you do not want to show immediately
- outside the dialog's boundaries. When you want to change the
- controls in the dialog, move the unwanted ones out and wanted
- controls back inside.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-